const connection = require('./connect')

exports.SaveChat = (formData, callback) => {
    connection.query(`insert into msg_history values(null,"${formData.username}","${formData.name}","${formData.msg}","${formData.time}");`, (err, data) => {
        if (err) return callback(err)
        callback(null)
    })
}